package com.ruoyi.miniapp.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.model.LoginUser;
import com.ruoyi.miniapp.api.domain.AppUser;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteAppUserService", value = ServiceNameConstants.MINIAPP_SERVICE)
public interface RemoteAppUserService {

    @GetMapping(value = "/appuser/find/{tel}")
    public R<LoginUser<AppUser>> getAppUserInfoByTel(@PathVariable("tel") String tel, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);


}
